package uk.co.wroedevelopments.semanticworkbench.query;

import java.util.ArrayList;
import java.util.List;

import org.neo4j.api.core.Node;
import org.xtext.example.semQryDsl.Param;

public class ResultList {
	private List<ResultGraph> resultList;
	private BindingMap bindingMap;
	
	public ResultList() {
		resultList = new ArrayList<ResultGraph>();
		bindingMap = new BindingMap();
	}
	

	public List<ResultGraph> getResultList() {
		return resultList;
	}

	public void setResultList(List<ResultGraph> resultList) {
		this.resultList = resultList;
	}


	public void add(ResultGraph rg) {
		resultList.add(rg);
		
	}


	public int size() {
		
		return resultList.size();
	}


	public void addBinding(String param, Node endNode) {
		bindingMap.add(param,endNode);
		
	}


	public List<Node> getBindingNodes(String string) {
		return bindingMap.getNodes(string);
		
	}
	

}
